package com.yk.framework.gui.core.impl;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.yk.framework.gui.core.ICoreUI;
import com.yk.framework.gui.ctrl.YKPanel;
import com.yk.framework.gui.ctrl.YKStateBar;
import com.yk.framework.gui.ctrl.YKToolButton;

/**
 * @author lifetime
 *
 */
@SuppressWarnings("serial")
public abstract class CoreUI extends YKPanel implements ICoreUI{
	private String uiTitle;
	private boolean isOnShow;
	private String UIState;
	private HashMap<String,Object> uiContext = new HashMap<String, Object>();

	public String getUITitle() {
		return uiTitle;
	}

	public void setUITitle(String title) {
		uiTitle = title;
	}

	public void onLoad() throws Exception {
		
	}

	public void onShow() {
		isOnShow = true;
	}

	public boolean isOnShow() {
		return isOnShow;
	}

	public void setOnShow(boolean onShow) {
		isOnShow = onShow;
	}

	public List<YKToolButton> getToolButtons() {
		return new ArrayList<YKToolButton>();
	}
	
	public YKStateBar getStateBar() {
		return null;
	}

	public HashMap<String, Object> getUiContext() {
		return uiContext;
	}

	public void setUiContext(HashMap<String, Object> uiContext) {
		this.uiContext = uiContext;
	}

	public String getUIState() {
		return UIState;
	}

	public void setUIState(String uiState) {
		UIState = uiState;
	}
}
